package com.softcomputer.rpt;

import com.softcomputer.rpt.ejb.LoginSession;
import com.softcomputer.rpt.entity.User;
import java.io.Serializable;
import java.util.List;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

@ManagedBean(name = "login")
@SessionScoped
public class LoginManagementBean implements Serializable{

   @EJB
   private LoginSession loginSession;

   public List<User> getUsers() {
      return loginSession.retrieve();
   }

   public LoginManagementBean() {
   }
}
